import service  from '../utils/request'

  export function tuan_list(paylod={}){
    return service.get('/api/tuan/list',paylod)
   }
   export function dp_list(paylod={}){
     return service.get('/api/shop/list',paylod)
    }
    export function dp_shopinfo(paylod={}){
      return service.get('/api/shop/shopinfo',paylod)
     }
     export function user_login(paylod={}){
      return service.post('/api/user/login',paylod)
     }
     export function user_register(paylod={}){
      return service.post('/api/user/register',paylod)
     }
     export function lunbo_list(paylod={}){
      return service.get('/api/banner/list',paylod)
     }
     export function shop_favlist(paylod={}){
      return service.get('/api/shop/favlist',paylod)
     }
     export function shoucang_shop(paylod={}){
      return service.post('/api/shop/fav',paylod)
     }
     export function unshoucang_shop(paylod={}){
      return service.post('/api/shop/unfav',paylod)
     }
     //店铺列表
     export function address_list(paylod={}){
      return service.get('/api/address/list',paylod)
     }
     //新增地址
     export function new_address(paylod={}){
      return service.post('/api/address/add',paylod)
     }
     //购物车列表
     export function shopcar_list(paylod={}){
      return service.get('/api/shopcart/list',paylod)
     }
       //购物车+1
       export function shopcar_add(paylod={}){
        return service.post('/api/shopcart/add',paylod)
       }
        //购物车-1
      export function shopcar_jian(paylod={}){
      return service.post('/api/shopcart/sub',paylod)
         }
         //购物车清空
      export function shopcar_clear(paylod={}){
     return service.post('/api/shopcart/clear',paylod)
       }
     //搜索
     export function shop_search(paylod={}){
      return service.get('/api/shop/search',paylod)
        }
        //地址修改
        export function address_alter(paylod={}){
          return service.post('/api/address/edit',paylod)
            }
            //地址删除
            export function address_delete(paylod={}){
              return service.post('/api/address/del',paylod)
                }
      
                

